﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DevExpress.Utils;

namespace InsuService
{
    public class SysPublic
    {
        /// <summary>
        /// 读卡类型，市民卡
        /// </summary>
        public const string READ_TYPE_CITYCARD = "1";
        /// <summary>
        /// 读卡类型，虚拟卡
        /// </summary>
        public const string READ_TYPE_VITUAL = "2";
        /// <summary>
        /// 读卡类型，健康卡
        /// </summary>
        public const string READ_TYPE_HEALTHCARD = "3";
        /// <summary>
        /// 读卡类型，刷脸
        /// </summary>
        public const string READ_TYPE_FACE = "4";

        public static WaitDialogForm waitting = null;

        public static void showLoading(string caption, string title)
        {
            if (waitting == null)
            {
                waitting = new WaitDialogForm(caption, title);
            }
            waitting.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            waitting.Show();
        }

        public static void hideLoading()
        {
            waitting.Hide();
            waitting.Dispose();
            waitting = null;
        }
    }
}
